package com.base.common.persistent.dao;

import com.base.common.persistent.model.EvaluatedRecord;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface EvaluatedRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(EvaluatedRecord record);

    int insertSelective(EvaluatedRecord record);

    EvaluatedRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(EvaluatedRecord record);

    int updateByPrimaryKey(EvaluatedRecord record);

    List<EvaluatedRecord> queryTotalEvaluationsListByEvaluatePoint(@Param("evaluatePointId") int evaluatePointId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
}